package javademo;

public class Dog extends Animal implements Eat{
    private String a = "private son";
    public String b = "public son";

//    @Override
//    public void method1() {
//        System.out.println("son");
//        System.out.println(a);
//        System.out.println(b);
//    }

    public void method2() {
        System.out.println("son");
    }

    @Override
    public void method3() {
        System.out.println(this.eat);
    }


}
